package com.mask.im.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author jian
 */

@Getter
@AllArgsConstructor
public enum SignUpNoticeEnum {

	EMAIL_SIGNUP(1,"邮箱号"),

	PHONE_SIGNUP(2,"手机号"),

	GITEE_SIGNUP(3,"Gitee"),

	GITHUB_SIGNUP(4,"GitHub");

	private final Integer type;

	private final String illustrate;

	public static String getSignUpNoticeType(Integer type){
		for (SignUpNoticeEnum value : SignUpNoticeEnum.values()) {
			if (value.type.equals(type)){
				return value.illustrate;
			}
		}
		return null;
	}
}
